

public class Main {
	
	static class Employee{}
	static class Manager extends Employee{}
	
	public static void main(String[] args){
		Manager[] managers = new Manager[1];
		Employee[] employees = managers;


		// Exception in thread "main" java.lang.ArrayStoreException: Employee
		employees[0] = new Employee(); // will throw 
	}
}